﻿<UserControl x:Class="Sparkle.Wpf.Demo.UI.PersonControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:UI="clr-namespace:Sparkle.UI;assembly=SparkleWpfUI" xmlns:MVVM="clr-namespace:Sparkle.MVVM;assembly=Sparkle.MVVM" Height="444" Width="748">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" > </RowDefinition>
            <RowDefinition Height="100*" ></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
            <Button MVVM:ActionHandler.Action="NewEmployee" x:Name="cmdNew" Width="100" >New</Button>
            <Button MVVM:ActionHandler.Action="SaveEmployee" x:Name="cmdSave" Width="100" >Save</Button>
        </StackPanel>
        <UI:DataPanel x:Name="hsl" DataContext="{Binding Path=Model}" Grid.Row="1" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"  />   
    </Grid>
</UserControl>
